/*
 * Copyright (C) 2010 Moduad Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cc.telecomdigital.tdstock.activity.groups.more.push.client;

/**
 * Static constants for this package.
 * 
 * @author hunter
 */
public class Constants
{

	// 是否自动转向 UI
	public static boolean		_isGo_MoreActivity								= false;

	public static boolean		_isGo_MessageHistoryListActivity					= false;

	public static boolean		_isGo_MessageHistoryListActivity_Immediately			= false;

	public static boolean		_isGO_MessageContentActivity						= false;

	public static boolean		_isGO_MessageContentActivity_Immediately			= false;

	public static boolean		_isSettingCurructTabMoreActivity					= false;

	// -------------------在Intent中设置下述值-------------------
	public static final String	INTENT_KEY_ISGO_MOREACTIVITY						= "go.moreActivity";

	public static final String	INTENT_KEY_ISGO_MESSAGEHISTORYLISTACTIVITY			= "go.messagehistorylistactivity";

	public static final String	INTENT_KEY_ISGO_MESSAGEHISTORYLISTACTIVITY_IMMEDIATELY	= "go.messagehistorylistactivity.immediately";

	public static final String	INTENT_KEY_ISGO_MESSAGECONTENTACTIVITY				= "go.messagecontentactivity";

	public static final String	INTENT_KEY_ISGO_MESSAGECONTENTACTIVITY_IMMEDIATELY	= "go.messagecontentactivity.immediately";

	public static final String	INTENT_KEY_ISSETTING_CURRUCT_TABMOREACTIVITY			= "set.current.tab.moreactivity";

	public static final String	INTENT_KEY_IS_CURRENT_ACTIVITY					= "is.current.activity";

	public static final String	INTENT_KEY_MESSAGE_ID							= "message.id";

	public static final String	INTENT_KEY_MESSAGE_TYPE_ID						= "message.type.id";

	public static final String	INTENT_KEY_GO_NOTIFICATION_TUNNEL					= "message.go.tunnel";

	// -------------------在Intent中设置上述值-------------------

	// SHARED_PREFERENCE_NAME
	public static final String	SHARED_PREFERENCE_NAME							= "push_service_client_preferences";

	// PREFERENCE KEYS
	public static final String	ACCOUNT										= "ACCOUNT";

	public static final String	TOKEN										= "TOKEN";

	public static final String	CALLBACK_ACTIVITY_PACKAGE_NAME					= "CALLBACK_ACTIVITY_PACKAGE_NAME";

	public static final String	CALLBACK_ACTIVITY_CLASS_NAME						= "CALLBACK_ACTIVITY_CLASS_NAME";

	public static final String	API_KEY										= "API_KEY";

	public static final String	VERSION										= "VERSION";

	public static final String	XMPP_HOST										= "XMPP_HOST";

	public static final String	XMPP_PORT										= "XMPP_PORT";

	public static final String	XMPP_USERNAME									= "XMPP_USERNAME";

	public static final String	XMPP_PASSWORD									= "XMPP_PASSWORD";

	// public static final String USER_KEY = "USER_KEY";

	public static final String	DEVICE_ID										= "DEVICE_ID";

	public static final String	EMULATOR_DEVICE_ID								= "EMULATOR_DEVICE_ID";

	public static final String	NOTIFICATION_ICON								= "NOTIFICATION_ICON";

	/**
	 * 是否提醒
	 */
	public static final String	SETTINGS_NOTIFICATION_ENABLED						= "SETTINGS_NOTIFICATION_ENABLED";

	public static final String	SETTINGS_SOUND_ENABLED							= "SETTINGS_SOUND_ENABLED";

	public static final String	SETTINGS_VIBRATE_ENABLED							= "SETTINGS_VIBRATE_ENABLED";

	public static final String	SETTINGS_TOAST_ENABLED							= "SETTINGS_TOAST_ENABLED";

	// NOTIFICATION FIELDS，通知属性

	public static final String	NOTIFICATION_ID								= "NOTIFICATION_ID";

	public static final String	NOTIFICATION_API_KEY							= "NOTIFICATION_API_KEY";

	public static final String	NOTIFICATION_TITLE								= "NOTIFICATION_TITLE";
	/* add */
	public static final String	NOTIFICATION_MESSAGE_TYPE_ID						= "NOTIFICATION_MESSAGE_TYPE_ID";

	public static final String	NOTIFICATION_MESSAGE_ID							= "NOTIFICATION_MESSAGE_ID";
	/* add */
	public static final String	NOTIFICATION_MESSAGE							= "NOTIFICATION_MESSAGE";

	public static final String	NOTIFICATION_URI								= "NOTIFICATION_URI";

	// INTENT ACTIONS,广播过滤字符串

	public static final String	ACTION_SHOW_NOTIFICATION							= "cc.telecomdigital.tdstock.SHOW_NOTIFICATION";

	public static final String	ACTION_NOTIFICATION_CLICKED						= "cc.telecomdigital.tdstock.NOTIFICATION_CLICKED";

	public static final String	ACTION_NOTIFICATION_CLEARED						= "cc.telecomdigital.tdstock.NOTIFICATION_CLEARED";

	// 文件创建标志
	public static final String	FLAG											= "FLAG";

	public static final int		ANDROID_PUSH_SERVER_CLOSE						= 10000;
	public static final int		ANDROID_PUSH_SERVER_SESSION_CLEAR					= 2000;

	public static final int		RECONNECTION_DELAY								= 2500;

	public static final String[]	DEFALUT_INFO									= {
			"未知版本", "未知手機品牌"												};

	public static final String	XMPP_DEFAULT_HOST								= "androidpush.telecomdigital.cc";
	public static String		XMPP_DEFAULT_PORT								= "443";										//443<-1026
	public static String		XMPP_APIKEY									= "1234567890";
	public static String		version										= "0.5.0";

	public final static String	INTENT_KEY_DETAIL_MESSAGE_ID						= "_detail_url_id";
	public final static String	INTENT_KEY_DETAIL_MESSAGE_URL						= "_detail_url";
	public static final String	INTENT_KEY_COME_FROM							= "Come.From";

}
